import {qss} from '../../util/request'
import request from '../../util/request'

export const joinGroup= (gid) => {
    let url =  '/api/msgGroup/join'
    let param = {
        gid: gid
    }
    return request.post(url,qss(param))
}

//获取添加好友记录
export const getApplyList= () => {
    let url = '/api/friend/apply/send'
    let param = {

    }
    return request.get(url,qss(param))
}

//接受好友申请
export const takeApply= (userId) => {
    let url = '/api/msgCenter/agreeFriendApply'
    let param = {
        userId: userId
    }
    return request.post(url,qss(param))
}